package work1.work2.pet;

public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat();
        Dog dog = new Dog();
        cat.setName("猫");
        dog.setName("狗");
        cat.eating();
        cat.sleep();
        cat.grad();
        dog.eating();
        dog.bite();
        dog.sleep();
    }
}
